package com.sdp.th.db.th_eq_alarm_set.service.impl;

import com.sdp.th.entity.ThEqAlarmSet;
import com.sdp.th.db.th_eq_alarm_set.mapper.ThEqAlarmSetMapper;
import com.sdp.th.db.th_eq_alarm_set.service.IThEqAlarmSetService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 设备报警设置 服务实现类
 * </p>
 *
 * @author zsp
 * @since 2025-04-13
 */
@Service
public class ThEqAlarmSetServiceImpl extends ServiceImpl<ThEqAlarmSetMapper, ThEqAlarmSet> implements IThEqAlarmSetService {

	@Override
	public ThEqAlarmSet queryAlarmSetByDeviceNo(String deviceNo) {
		LambdaQueryWrapper<ThEqAlarmSet> queryWrapper = new LambdaQueryWrapper<>();
		queryWrapper.eq(ThEqAlarmSet::getDeviceNo, deviceNo);
		return getOne(queryWrapper,false);
	}

	

}
